package com.mes.cloud.api.dto.request.area;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 行政区划表
 *
 * @author Mr.zhang
 * @email 407892370@qq.com
 * @version 2019-08-01 19:04:28
 */
@Data
public class BaseAreaRequest implements Serializable{
    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键ID", required = false)
    private String id;

    @ApiModelProperty(value = "区划编码", required = false)
    private String code;

    @ApiModelProperty(value = "区划名称", required = true)
    @NotEmpty(message = "区划名称不能为空")
    private String name;

    @ApiModelProperty(value = "区划简称", required = false)
    private String shortName;

    @ApiModelProperty(value = "自定义编码", required = false)
    private String customCode;

    @ApiModelProperty(value = "经度", required = false)
    private String longitude;

    @ApiModelProperty(value = "纬度", required = false)
    private String latitude;

    @ApiModelProperty(value = "区划类型", required = true)
    @NotNull(message = "区划类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "城市类型", required = false)
    private Integer cityType;

    @ApiModelProperty(value = "是否省会 0.是 1.否", required = false)
    private Integer provincialCapital;

    @ApiModelProperty(value = "是否主城 0.是 1.否", required = false)
    private Integer mainArea;

    @ApiModelProperty(value = "上级行政区", required = true)
    private String parentId;

    @ApiModelProperty(value = "区域面积", required = false)
    private BigDecimal regionalArea;

    @ApiModelProperty(value = "人口(万)", required = false)
    private BigDecimal population;

    @ApiModelProperty(value = "门店数量", required = false)
    private Integer storeCount;

    @ApiModelProperty(value = "酒店数量", required = false)
    private Integer hotelCount;

    @ApiModelProperty(value = "欣和市场占有率", required = false)
    private String marketRate;

    @ApiModelProperty(value = "市场容量", required = false)
    private String marketCapacity;

    @ApiModelProperty(value = "排序", required = false)
    private Integer sort;

    @ApiModelProperty(value = "备注", required = false)
    private String remark;

    @ApiModelProperty(value = "状态(0：禁用，1：启用)", required = false)
    private String enableFlag;

    @ApiModelProperty(value = "创建人", required = false)
    private String createBy;

    @ApiModelProperty(value = "创建时间", required = false)
    private Date createTime;

    @ApiModelProperty(value = "修改人", required = false)
    private String updateBy;

    @ApiModelProperty(value = "修改时间", required = false)
    private Date updateTime;

    @ApiModelProperty(value = "删除标记，1：删除，0：未删除", required = false)
    private String delFlag;

    @ApiModelProperty(value = "更新日期", required = false)
    private String updateDateStr;

    @ApiModelProperty(value = "版本", required = false)
    private Integer version;


}
